package com.lau.dicttranslator.model;

import com.lau.dicttranslator.annotation.DictField;
import com.lau.dicttranslator.enums.DictType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.lau.dicttranslator.serializer.DictFieldSerializer;
import lombok.Data;

/**
 * 用户角色实体
 */
@Data
public class UserRole {
    
    private Long roleId;
    
    /**
     * 角色类型：使用数据库字典
     */
    @DictField(dictType = DictType.DATABASE, dictCode = "role_type")
    @JsonSerialize(using = DictFieldSerializer.class)
    private String roleType;
    
    private String roleName;
} 